cmake_minimum_required(VERSION 3.22)
project(asio-study)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED on)
set(CMAKE_CXX_EXTENSIONS OFF) 
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

enable_testing()

list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
message(STATUS "${CMAKE_MODULE_PATH}")

# 单元测试
include(CTest)
include(Gtest)

# 基准测试
include(Benchmark) 
set(BENCHMARK_ENABLE_TESTING OFF)

# 代码质量检查
include(Format)

include(Static-analysis)

# 第三方库
include(Asio)

add_subdirectory(src bin)

